home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / preferences.769 < prev    next >
Text File  |  1992-02-06  |  2KB  |  47 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw11760
  3. \paperh8280
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 setting key alternatives on a per application basis\
  8. \
  9.  
  10. \fi-440\li440 Q:  I know that I can use the Preferences application to specify a command key for a given command in a menu,  but the key alternative applies to 
  11. \b all
  12. \b0  applications.  Is there a way to specify a command key that will apply to just one application?   \
  13.  
  14. \fi0\li0\fc0 \
  15.  
  16. \fi-440\li440 A:  Yes, you can do this, but you must resort to 
  17. \b dwrite(1)
  18. \b0  to set the 
  19. \b NXCommandKeys
  20. \b0  default for that application.  The format is "menu item name, command key, menu item name, command key,..." with each element delineated by a comma.  Example: "Page Layout..., P, Heavier, H, Lighter, L".  \
  21. \
  22.  
  23. \pard\tx440\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-440\li440     Let's say you often accidentally hit Command-q in Terminal, so you would like to change the key alternative for Quit to Command-Q, but only in the Terminal application.  This simple 
  24. \b dwrite
  25. \b0  command should solve that problem:\
  26.     
  27. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-440\li440\fc0 \
  28.     
  29. \f1\fs24 localhost> dwrite Terminal NXCommandKeys "Quit, Q"\
  30.     
  31. \f0\fs28 \
  32.  
  33. \pard\tx440\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-440\li440\fc0     For more information about 
  34. \b dwrite
  35. \b0 , consult the man page.\
  36.  
  37. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-440\li440\fc0 \
  38.  
  39. \fi0\li0 QA769
  40. \pard\tx0\tx2160\tx2540\tx2880\tx7920\fi-380\li1800 \
  41.  
  42. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fc0 \
  43. Not valid for 1.0\
  44. Valid for 2.0\
  45. \
  46.  
  47.